package cn.wtg.kotlindemo.testSingleActivityMulFragment

import android.os.Bundle
import android.view.View
import cn.wtg.kotlindemo.BR
import cn.wtg.kotlindemo.R
import cn.wtg.kotlinlib.SingleActivityMulFragmentUi.BaseMVVMBackStackFragment
import cn.wtg.kotlinlib.baseUi.BaseActivity
import cn.wtg.kotlindemo.databinding.FragmentSecondBinding

/**
 * author: wtg
 * time: 2022/11/29
 * desc:
 */
class ThirdFragment : BaseMVVMBackStackFragment<FragmentSecondBinding, ThirdFragmentVM>(){
    companion object{
        fun newInstance(): ThirdFragment {
            val args = Bundle()
            val fragment = ThirdFragment()
            fragment.arguments = args
            return fragment
        }
    }
    override fun getInitViewModel(): ThirdFragmentVM {
        return ThirdFragmentVM(this, activity as BaseActivity)
    }

    override fun getInitViewModelId(): Int {
        return BR.thirdFragmentVM
    }

    override fun getLayoutRes(): Int {
        return R.layout.fragment_third
    }

    override fun initView(savedInstanceState: Bundle?, rootView: View?) {

    }
}